﻿using TbShop.Web.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TbShop.Web.Areas.Admin.Models
{
    public class BannerViewModel:BaseViewModel
    {
        /// <summary>
        /// 图片地址
        /// </summary>
        public string ImageUrl { get; set; }
        /// <summary>
        /// 位置
        /// </summary>
        public string Category { get; set; }
        public IEnumerable<SelectListItem> Categorys {
            get {
                return DropdownHelper.ConvertToSelectListItem(TbShop.Constants.CodeCategories.BannerCategory);
            }
        }
        /// <summary>
        /// 活动编号
        /// </summary>
        public int ActiveId { set; get; }

        /// <summary>
        /// 链接地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}